command were not available elsewhere on the machine (on my Debian boxes, for
example).
Sleep for a configurable amount of time between xm create calls (by default,
5 seconds). This spaces out the booting of the new domains, meaning that they
should not thrash the disk so much.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
#
XENDOMAINS_USLEEP=100000
+## Type: integer
+## Default: 5000000
+#
+# When creating a guest domain, it is sensible to allow a little time for it
+# to get started before creating another domain or proceeding through the
+# boot process. Without this, the booting guests will thrash the disk as they
+# start up. This timeout (in microseconds) specifies the delay after guest
+# domain creation.
+#
+XENDOMAINS_CREATE_USLEEP=5000000
+
## Type: string
## Default: ""
#
{
if [ -n "$1" ]
then
- sleep $(( $1 / 1000 ))
+ sleep $(( $1 / 1000000 ))
fi
}
fi
if [ $? -ne 0 ]; then
rc_failed $?
echo -n '!'
+ else
+ usleep $XENDOMAINS_CREATE_USLEEP
fi
fi
done